package com.gzwh.weblib.bean;

import android.os.Parcel;
import android.os.Parcelable;

import lombok.Data;

@Data
public class CountCateToFoodModel   implements Parcelable {

    private int counts;

    private String id; //id'

    private String name;

    private String channelId;

    private String oneOrgCode;

    private String MenuId;

    private int sort;

    public CountCateToFoodModel() {
    }


    @Override
    public int describeContents() {
        return 0;
    }


    public CountCateToFoodModel(Parcel in) {
        counts = in.readInt();
        id = in.readString();
        name = in.readString();
        channelId = in.readString();
        oneOrgCode = in.readString();
        MenuId = in.readString();
        sort = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(counts);
        dest.writeString(id);
        dest.writeString(name);
        dest.writeString(channelId);
        dest.writeString(oneOrgCode);
        dest.writeString(MenuId);
        dest.writeInt(sort);
    }

    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        @Override
        public CountCateToFoodModel createFromParcel(Parcel source) {

            return new CountCateToFoodModel(source);
        }
        @Override

        public CountCateToFoodModel[] newArray(int size) {
            return new CountCateToFoodModel[size];
        }
    };

    public int getCounts() {
        return counts;
    }

    public void setCounts(int counts) {
        this.counts = counts;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getOneOrgCode() {
        return oneOrgCode;
    }

    public void setOneOrgCode(String oneOrgCode) {
        this.oneOrgCode = oneOrgCode;
    }

    public String getMenuId() {
        return MenuId;
    }

    public void setMenuId(String menuId) {
        MenuId = menuId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }
}
